CC:=gcc

openfile: openfile.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

openfile2: openfile2.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

fputc: fputc.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

fputs: fputs.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@
fprintf: fprintf.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

system_call: system_call.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

test: test.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@